home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_ORBit.idb / usr / freeware / include / orb / poa.h.z / poa.h
Encoding:
C/C++ Source or Header  |  1999-07-16  |  10.2 KB  |  338 lines

  1. /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
  2.  
  3. /*
  4.  *  ORBit: A CORBA v2.2 ORB
  5.  *
  6.  *  Copyright (C) 1998 Richard H. Porter
  7.  *
  8.  *  This library is free software; you can redistribute it and/or
  9.  *  modify it under the terms of the GNU Library General Public
  10.  *  License as published by the Free Software Foundation; either
  11.  *  version 2 of the License, or (at your option) any later version.
  12.  *
  13.  *  This library is distributed in the hope that it will be useful,
  14.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  16.  *  Library General Public License for more details.
  17.  *
  18.  *  You should have received a copy of the GNU Library General Public
  19.  *  License along with this library; if not, write to the Free
  20.  *  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  *
  22.  *  Author: Dick Porter <dick@cymru.net>
  23.  *
  24.  */
  25.  
  26. #ifndef _ORBIT_POA_H_
  27. #define _ORBIT_POA_H_
  28.  
  29. #include "orbit_types.h"
  30.  
  31. extern PortableServer_ThreadPolicyValue PortableServer_ThreadPolicy__get_value(
  32.     PortableServer_ThreadPolicy obj,
  33.     CORBA_Environment *ev);
  34.  
  35. extern PortableServer_LifespanPolicyValue PortableServer_LifespanPolicy__get_value(
  36.     PortableServer_LifespanPolicy obj,
  37.     CORBA_Environment *ev);
  38.  
  39. extern PortableServer_IdUniquenessPolicyValue PortableServer_IdUniquenessPolicy__get_value(
  40.     PortableServer_IdUniquenessPolicy obj,
  41.     CORBA_Environment *ev);
  42.  
  43. extern PortableServer_IdAssignmentPolicyValue PortableServer_IdAssignmentPolicy__get_value(
  44.     PortableServer_IdAssignmentPolicy obj,
  45.     CORBA_Environment *ev);
  46.  
  47. extern PortableServer_ImplicitActivationPolicyValue PortableServer_ImplicitActivationPolicy__get_value(
  48.     PortableServer_ImplicitActivationPolicy obj,
  49.     CORBA_Environment *ev);
  50.  
  51. extern PortableServer_ServantRetentionPolicyValue PortableServer_ServantRetentionPolicy__get_value(
  52.     PortableServer_ServantRetentionPolicy obj,
  53.     CORBA_Environment *ev);
  54.  
  55. extern PortableServer_RequestProcessingPolicyValue PortableServer_RequestProcessingPolicy__get_value(
  56.     PortableServer_RequestProcessingPolicy obj,
  57.     CORBA_Environment *ev);
  58.  
  59. PortableServer_POAManager_State
  60. PortableServer_POAManager_get_state(PortableServer_POAManager obj,
  61.                     CORBA_Environment *ev);
  62.  
  63. extern void PortableServer_POAManager_activate(
  64.     PortableServer_POAManager obj,
  65.     CORBA_Environment *ev);
  66.  
  67. extern void PortableServer_POAManager_hold_requests(
  68.     PortableServer_POAManager obj,
  69.     CORBA_boolean wait_for_completion,
  70.     CORBA_Environment *ev);
  71.  
  72. extern void PortableServer_POAManager_discard_requests(
  73.     PortableServer_POAManager obj,
  74.     CORBA_boolean wait_for_completion,
  75.     CORBA_Environment *ev);
  76.  
  77. extern void PortableServer_POAManager_deactivate(
  78.     PortableServer_POAManager obj,
  79.     CORBA_boolean etherealize_objects,
  80.     CORBA_boolean wait_for_completion,
  81.     CORBA_Environment *ev);
  82.  
  83. extern CORBA_boolean PortableServer_AdapterActivator_unknown_adapter(
  84.     PortableServer_AdapterActivator obj,
  85.     PortableServer_POA parent,
  86.     CORBA_char *name,
  87.     CORBA_Environment *ev);
  88.  
  89. extern PortableServer_Servant PortableServer_ServantActivator_incarnate(
  90.     PortableServer_ServantActivator obj,
  91.     PortableServer_ObjectId *oid,
  92.     PortableServer_POA adapter,
  93.     CORBA_Environment *ev);
  94.  
  95. extern void PortableServer_ServantActivator_etherealize(
  96.     PortableServer_ServantActivator obj,
  97.     PortableServer_ObjectId *oid,
  98.     PortableServer_POA adapter,
  99.     PortableServer_Servant serv,
  100.     CORBA_boolean cleanup_in_progress,
  101.     CORBA_boolean remaining_activations,
  102.     CORBA_Environment *ev);
  103.  
  104. extern PortableServer_POA PortableServer_POA_create_POA(
  105.     PortableServer_POA obj,
  106.     CORBA_char *adapter_name,
  107.     PortableServer_POAManager a_POAManager,
  108.     CORBA_PolicyList *policies,
  109.     CORBA_Environment *ev);
  110.  
  111. extern PortableServer_POA PortableServer_POA_find_POA(
  112.     PortableServer_POA obj,
  113.     CORBA_char *adapter_name,
  114.     CORBA_boolean activate_it,
  115.     CORBA_Environment *ev);
  116.  
  117. extern void PortableServer_POA_destroy(
  118.     PortableServer_POA obj,
  119.     CORBA_boolean etherealize_objects,
  120.     CORBA_boolean wait_for_completion,
  121.     CORBA_Environment *ev);
  122.  
  123. extern PortableServer_ThreadPolicy PortableServer_POA_create_thread_policy(
  124.     PortableServer_POA obj,
  125.     PortableServer_ThreadPolicyValue value,
  126.     CORBA_Environment *ev);
  127.  
  128. extern PortableServer_LifespanPolicy PortableServer_POA_create_lifespan_policy(
  129.     PortableServer_POA obj,
  130.     PortableServer_LifespanPolicyValue value,
  131.     CORBA_Environment *ev);
  132.  
  133. extern PortableServer_IdUniquenessPolicy PortableServer_POA_create_id_uniqueness_policy(
  134.     PortableServer_POA obj,
  135.     PortableServer_IdUniquenessPolicyValue value,
  136.     CORBA_Environment *ev);
  137.  
  138. extern PortableServer_IdAssignmentPolicy PortableServer_POA_create_id_assignment_policy(
  139.     PortableServer_POA obj,
  140.     PortableServer_IdAssignmentPolicyValue value,
  141.     CORBA_Environment *ev);
  142.  
  143. extern PortableServer_ImplicitActivationPolicy PortableServer_POA_create_implicit_activation_policy(
  144.     PortableServer_POA obj,
  145.     PortableServer_ImplicitActivationPolicyValue value,
  146.     CORBA_Environment *ev);
  147.  
  148. extern PortableServer_ServantRetentionPolicy PortableServer_POA_create_servant_retention_policy(
  149.     PortableServer_POA obj,
  150.     PortableServer_ServantRetentionPolicyValue value,
  151.     CORBA_Environment *ev);
  152.  
  153. extern PortableServer_RequestProcessingPolicy PortableServer_POA_create_request_processing_policy(
  154.     PortableServer_POA obj,
  155.     PortableServer_RequestProcessingPolicyValue value,
  156.     CORBA_Environment *ev);
  157.  
  158. extern CORBA_char *PortableServer_POA__get_the_name(
  159.     PortableServer_POA obj,
  160.     CORBA_Environment *ev);
  161.  
  162. extern PortableServer_POA PortableServer_POA__get_the_parent(
  163.     PortableServer_POA obj,
  164.     CORBA_Environment *ev);
  165.  
  166. extern PortableServer_POAManager PortableServer_POA__get_the_POAManager(
  167.     PortableServer_POA obj,
  168.     CORBA_Environment *ev);
  169.  
  170. extern PortableServer_AdapterActivator PortableServer_POA__get_the_activator(
  171.     PortableServer_POA obj,
  172.     CORBA_Environment *ev);
  173.  
  174. extern void PortableServer_POA__set_the_activator(
  175.     PortableServer_POA obj,
  176.     PortableServer_AdapterActivator the_activator,
  177.     CORBA_Environment *ev);
  178.  
  179. extern PortableServer_ServantManager PortableServer_POA_get_servant_manager(
  180.     PortableServer_POA obj,
  181.     CORBA_Environment *ev);
  182.  
  183. extern void PortableServer_POA_set_servant_manager(
  184.     PortableServer_POA obj,
  185.     PortableServer_ServantManager imgr,
  186.     CORBA_Environment *ev);
  187.  
  188. extern PortableServer_Servant PortableServer_POA_get_servant(
  189.     PortableServer_POA obj,
  190.     CORBA_Environment *ev);
  191.  
  192. extern void PortableServer_POA_set_servant(
  193.     PortableServer_POA obj,
  194.     PortableServer_Servant p_servant,
  195.     CORBA_Environment *ev);
  196.  
  197. extern PortableServer_ObjectId *PortableServer_POA_activate_object(
  198.     PortableServer_POA obj,
  199.     PortableServer_Servant p_servant,
  200.     CORBA_Environment *ev);
  201.  
  202. extern void PortableServer_POA_activate_object_with_id(
  203.     PortableServer_POA obj,
  204.     PortableServer_ObjectId *id,
  205.     PortableServer_Servant p_servant,
  206.     CORBA_Environment *ev);
  207.  
  208. extern void PortableServer_POA_deactivate_object(
  209.     PortableServer_POA obj,
  210.     PortableServer_ObjectId *oid,
  211.     CORBA_Environment *ev);
  212.  
  213. extern CORBA_Object PortableServer_POA_create_reference(
  214.     PortableServer_POA obj,
  215.     CORBA_RepositoryId intf,
  216.     CORBA_Environment *ev);
  217.  
  218. extern CORBA_Object PortableServer_POA_create_reference_with_id(
  219.     PortableServer_POA obj,
  220.     PortableServer_ObjectId *oid,
  221.     CORBA_RepositoryId intf,
  222.     CORBA_Environment *ev);
  223.  
  224. extern PortableServer_ObjectId *PortableServer_POA_servant_to_id(
  225.     PortableServer_POA obj,
  226.     PortableServer_Servant p_servant,
  227.     CORBA_Environment *ev);
  228.  
  229. extern CORBA_Object PortableServer_POA_servant_to_reference(
  230.     PortableServer_POA obj,
  231.     PortableServer_Servant p_servant,
  232.     CORBA_Environment *ev);
  233.  
  234. extern PortableServer_Servant PortableServer_POA_reference_to_servant(
  235.     PortableServer_POA obj,
  236.     CORBA_Object reference,
  237.     CORBA_Environment *ev);
  238.  
  239. extern PortableServer_ObjectId *PortableServer_POA_reference_to_id(
  240.     PortableServer_POA obj,
  241.     CORBA_Object reference,
  242.     CORBA_Environment *ev);
  243.  
  244. extern PortableServer_Servant PortableServer_POA_id_to_servant(
  245.     PortableServer_POA obj,
  246.     PortableServer_ObjectId *oid,
  247.     CORBA_Environment *ev);
  248.  
  249. extern CORBA_Object PortableServer_POA_id_to_reference(
  250.     PortableServer_POA obj,
  251.     PortableServer_ObjectId *oid,
  252.     CORBA_Environment *ev);
  253.  
  254. extern PortableServer_POA PortableServer_Current_get_POA(
  255.     PortableServer_Current obj,
  256.     CORBA_Environment *ev);
  257.  
  258. extern PortableServer_ObjectId *PortableServer_Current_get_object_id(
  259.     PortableServer_Current obj,
  260.     CORBA_Environment *ev);
  261.  
  262. extern CORBA_char *PortableServer_ObjectId_to_string(
  263.     PortableServer_ObjectId *id,
  264.     CORBA_Environment *env);
  265.  
  266. extern CORBA_wchar *PortableServer_ObjectId_to_wstring(
  267.     PortableServer_ObjectId *id,
  268.     CORBA_Environment *env);
  269.  
  270. extern PortableServer_ObjectId *PortableServer_string_to_ObjectId(
  271.     CORBA_char *str,
  272.     CORBA_Environment *env);
  273.  
  274. extern PortableServer_ObjectId *PortableServer_wstring_to_ObjectId(
  275.     CORBA_wchar *str,
  276.     CORBA_Environment *env);
  277.  
  278. extern PortableServer_POA PortableServer_ServantBase__default_POA(
  279.     PortableServer_Servant,
  280.     CORBA_Environment *);
  281.  
  282. extern void PortableServer_ServantLocator_preinvoke(
  283.     PortableServer_ObjectId *oid,
  284.     PortableServer_POA adapter,
  285.     CORBA_Identifier op_name,
  286.     PortableServer_ServantLocator_Cookie *cookie);
  287.  
  288. extern void PortableServer_ServantLocator_postinvoke(
  289.     PortableServer_ObjectId *oid,
  290.     PortableServer_POA adapter,
  291.     CORBA_Identifier op_name,
  292.     PortableServer_ServantLocator_Cookie cookie,
  293.     PortableServer_Servant servant);
  294.  
  295. extern void PortableServer_ServantBase__init(
  296.     PortableServer_Servant,
  297.     CORBA_Environment *);
  298.  
  299. extern void PortableServer_ServantBase__fini(
  300.     PortableServer_Servant,
  301.     CORBA_Environment *);
  302.  
  303. /* 19.27 */
  304. extern CORBA_Identifier CORBA_ServerRequest_operation(
  305.     CORBA_ServerRequest req,
  306.     CORBA_Environment *env);
  307.  
  308. extern CORBA_Context CORBA_ServerRequest_ctx(
  309.     CORBA_ServerRequest req,
  310.     CORBA_Environment *env);
  311.  
  312. extern void CORBA_ServerRequest_arguments(
  313.     CORBA_ServerRequest req,
  314.     CORBA_NVList *parameters,
  315.     CORBA_Environment *env);
  316.  
  317. extern void CORBA_ServerRequest_set_result(
  318.     CORBA_ServerRequest req,
  319.     CORBA_any *value,
  320.     CORBA_Environment *env);
  321.  
  322. extern void CORBA_ServerRequest_set_exception(
  323.     CORBA_ServerRequest req,
  324.     CORBA_exception_type major,
  325.     CORBA_any *value,
  326.     CORBA_Environment *env);
  327.  
  328. extern void PortableServer_DynamicImpl__init(PortableServer_Servant,
  329.                          CORBA_Environment *ev);
  330.  
  331. extern void PortableServer_DynamicImpl__fini(PortableServer_Servant,
  332.                          CORBA_Environment *ev);
  333.  
  334.  
  335. #include "orbit_poa_type.h"
  336.  
  337. #endif /* !_ORBIT_POA_H_ */
  338.